package runnerworm;

import runnerworm.ui.*;
import runnerworm.core.*;

/**
 * <p>Title: RunnerWorm</p>
 * <p>Description: This will be a remake of a game I once saw on the
 * web. It cannot be more simple. There is a kind of worm that - I don't
 * know why - is running, maybe for its life, for fun, don't know. The fact
 * is that it is running through a tunnel or something like that. And this
 * tunnel is getting narrower. So, your mission will be drive the worm to
 * the end of the tunnel. And, sure, there will be obstacles. :)
 * The game's controls will use only the 'space' key. Press 'space' to make
 * the worm go up. Release the key to make it going down, down, down baby!</p>
 * There'll be three levels of difficulty: easy, medium and hard (or other cool
 * names that will correspond to these).
 * There will be high scores too, recording in disk the top five.
 * Maybe I implement a two player mode.
 * @author Guilherme Mauro Germoglio Barbosa
 */

public class RunnerWorm {

  /**
   * The world famous "main" method. This main will create the frame where the
   * game will be shown and create the engine. In other words, make things work.
   * @param args This won't be used, but you know java, it always need this
   * "String[] args" parameter on the main method. :)
   */
  public static void main(String[] args) {
    RunnerWormFrame frame = new RunnerWormFrame();
    Engine engine = new Engine();
    frame.addUserInterfaceListener(engine);
    engine.addEngineListener(frame);
    frame.show();
  }

  /**
   * This class cannot be instaciated.
   */
  private RunnerWorm() {

  }

}